package com.chen.demo.rhombus.domain.service;

import com.chen.demo.rhombus.domain.dto.UserDto;
import com.chen.demo.rhombus.acl.port.repository.UserRepository;
import com.chen.demo.rhombus.domain.entity.UserDo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class UserService {

    private final UserRepository userRepository;

    public void saveUser(UserDto dto) {
        UserDo userDO = dto.toDo();
        userRepository.insertUser(userDO);
    }

}
